from gavial_scriptsdk.Util import *


def test():
  v = load_variable('v1')
  print(v)
  print(type(v))
  df = load_table('table1')
  # save_to_table(df, 'table2')
  # df.to_sql()
  # print(df.sort_values(by='AREA_CODE', ascending=False))
  print(df)
  # write_jdbc(df, 'my_test', driver_class, url, driver_args, jar)
  # print(STORAGE_TYPE)
  # print(type(time.localtime()))
  my_list = ["a1", "a2"]
  export_variable(my_list, 'v5')
  v5 = load_variable('v5')
  print(v5)


if __name__ == "__main__":
  test()
